package org.lanqiao.bean;

import java.io.Serializable;

/**
 * position
 * 
 * @author
 */
public class Position implements Serializable {
	private Integer id;

	private Integer casThreeId;

	private String positionName;

	private String department;

	private Integer jobNature;

	private Integer salaryMin;

	private Integer salaryMax;

	private String city;

	private Integer experience;

	private Integer education;

	private String attraction;

	private String address;

	private Integer companyId;

	private String email;

	private Integer stateId;

	private String date;

	private String b1;

	private String b2;

	private String b3;

	private String describe;

	private static final long serialVersionUID = 1L;

	public Position(Integer casThreeId, String positionName, String department, Integer jobNature, Integer salaryMin,
			Integer salaryMax, String city, Integer experience, Integer education, String attraction, String describe,
			String address, Integer companyId, String email) {
		super();
		this.casThreeId = casThreeId;
		this.positionName = positionName;
		this.department = department;
		this.jobNature = jobNature;
		this.salaryMin = salaryMin;
		this.salaryMax = salaryMax;
		this.city = city;
		this.experience = experience;
		this.education = education;
		this.attraction = attraction;
		this.address = address;
		this.companyId = companyId;
		this.email = email;
		this.describe = describe;
	}

	public Position() {
		super();
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCasThreeId() {
		return casThreeId;
	}

	public void setCasThreeId(Integer casThreeId) {
		this.casThreeId = casThreeId;
	}

	public String getpositionName() {
		return positionName;
	}

	public void setpositionName(String positionName) {
		this.positionName = positionName;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public Integer getjobNature() {
		return jobNature;
	}

	public void setjobNature(Integer jobNature) {
		this.jobNature = jobNature;
	}

	public Integer getSalaryMin() {
		return salaryMin;
	}

	public void setSalaryMin(Integer salaryMin) {
		this.salaryMin = salaryMin;
	}

	public Integer getSalaryMax() {
		return salaryMax;
	}

	public void setSalaryMax(Integer salaryMax) {
		this.salaryMax = salaryMax;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public Integer getExperience() {
		return experience;
	}

	public void setExperience(Integer experience) {
		this.experience = experience;
	}

	public Integer getEducation() {
		return education;
	}

	public void setEducation(Integer education) {
		this.education = education;
	}

	public String getAttraction() {
		return attraction;
	}

	public void setAttraction(String attraction) {
		this.attraction = attraction;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getStateId() {
		return stateId;
	}

	public void setStateId(Integer stateId) {
		this.stateId = stateId;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getB1() {
		return b1;
	}

	public void setB1(String b1) {
		this.b1 = b1;
	}

	public String getB2() {
		return b2;
	}

	public void setB2(String b2) {
		this.b2 = b2;
	}

	public String getB3() {
		return b3;
	}

	public void setB3(String b3) {
		this.b3 = b3;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		Position other = (Position) that;
		return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
				&& (this.getCasThreeId() == null ? other.getCasThreeId() == null
						: this.getCasThreeId().equals(other.getCasThreeId()))
				&& (this.getpositionName() == null ? other.getpositionName() == null
						: this.getpositionName().equals(other.getpositionName()))
				&& (this.getDepartment() == null ? other.getDepartment() == null
						: this.getDepartment().equals(other.getDepartment()))
				&& (this.getjobNature() == null ? other.getjobNature() == null
						: this.getjobNature().equals(other.getjobNature()))
				&& (this.getSalaryMin() == null ? other.getSalaryMin() == null
						: this.getSalaryMin().equals(other.getSalaryMin()))
				&& (this.getSalaryMax() == null ? other.getSalaryMax() == null
						: this.getSalaryMax().equals(other.getSalaryMax()))
				&& (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
				&& (this.getExperience() == null ? other.getExperience() == null
						: this.getExperience().equals(other.getExperience()))
				&& (this.getEducation() == null ? other.getEducation() == null
						: this.getEducation().equals(other.getEducation()))
				&& (this.getAttraction() == null ? other.getAttraction() == null
						: this.getAttraction().equals(other.getAttraction()))
				&& (this.getAddress() == null ? other.getAddress() == null
						: this.getAddress().equals(other.getAddress()))
				&& (this.getCompanyId() == null ? other.getCompanyId() == null
						: this.getCompanyId().equals(other.getCompanyId()))
				&& (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
				&& (this.getStateId() == null ? other.getStateId() == null
						: this.getStateId().equals(other.getStateId()))
				&& (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
				&& (this.getB1() == null ? other.getB1() == null : this.getB1().equals(other.getB1()))
				&& (this.getB2() == null ? other.getB2() == null : this.getB2().equals(other.getB2()))
				&& (this.getB3() == null ? other.getB3() == null : this.getB3().equals(other.getB3()))
				&& (this.getDescribe() == null ? other.getDescribe() == null
						: this.getDescribe().equals(other.getDescribe()));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
		result = prime * result + ((getCasThreeId() == null) ? 0 : getCasThreeId().hashCode());
		result = prime * result + ((getpositionName() == null) ? 0 : getpositionName().hashCode());
		result = prime * result + ((getDepartment() == null) ? 0 : getDepartment().hashCode());
		result = prime * result + ((getjobNature() == null) ? 0 : getjobNature().hashCode());
		result = prime * result + ((getSalaryMin() == null) ? 0 : getSalaryMin().hashCode());
		result = prime * result + ((getSalaryMax() == null) ? 0 : getSalaryMax().hashCode());
		result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
		result = prime * result + ((getExperience() == null) ? 0 : getExperience().hashCode());
		result = prime * result + ((getEducation() == null) ? 0 : getEducation().hashCode());
		result = prime * result + ((getAttraction() == null) ? 0 : getAttraction().hashCode());
		result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
		result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
		result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
		result = prime * result + ((getStateId() == null) ? 0 : getStateId().hashCode());
		result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
		result = prime * result + ((getB1() == null) ? 0 : getB1().hashCode());
		result = prime * result + ((getB2() == null) ? 0 : getB2().hashCode());
		result = prime * result + ((getB3() == null) ? 0 : getB3().hashCode());
		result = prime * result + ((getDescribe() == null) ? 0 : getDescribe().hashCode());
		return result;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", id=").append(id);
		sb.append(", casThreeId=").append(casThreeId);
		sb.append(", positionName=").append(positionName);
		sb.append(", department=").append(department);
		sb.append(",  jobNature=").append(jobNature);
		sb.append(", salaryMin=").append(salaryMin);
		sb.append(", salaryMax=").append(salaryMax);
		sb.append(", city=").append(city);
		sb.append(", experience=").append(experience);
		sb.append(", education=").append(education);
		sb.append(", attraction=").append(attraction);
		sb.append(", address=").append(address);
		sb.append(", companyId=").append(companyId);
		sb.append(", email=").append(email);
		sb.append(", stateId=").append(stateId);
		sb.append(", date=").append(date);
		sb.append(", b1=").append(b1);
		sb.append(", b2=").append(b2);
		sb.append(", b3=").append(b3);
		sb.append(", describe=").append(describe);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}
}